<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD Xhtml 1.0 Transitional//EN" "http://www.w3.org/tr/xhtml1/Dtd/xhtml1-transitional.dtd">
<!--
 *************************************************************************
 * The contents of this file are subject to the Openbravo  Public  License
 * Version  1.0  (the  "License"),  being   the  Mozilla   Public  License
 * Version 1.1  with a permitted attribution clause; you may not  use this
 * file except in compliance with the License. You  may  obtain  a copy of
 * the License at http://www.openbravo.com/legal/license.html
 * Software distributed under the License  is  distributed  on  an "AS IS"
 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
 * License for the specific  language  governing  rights  and  limitations
 * under the License.
 * The Original Code is Openbravo ERP.
 * The Initial Developer of the Original Code is Openbravo SL
 * All portions are Copyright (C) 2001-2006 Openbravo SL
 * All Rights Reserved.
 * Contributor(s):  ______________________________________.
 ************************************************************************
-->
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<TITLE>Sale invoices report</TITLE>
 <link rel="SHORTCUT ICON" href="../../../../../web/images/favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" type="text/css" href="../../../../../web/skins/Default/Main/Main_Report.css" id="paramCSS" />
    <script language="JavaScript" type="text/javascript" id="paramDirection">
      var baseDirection = "../../../../../web/";
      </script>
      <script language="JavaScript" src="../../../../../web/js/messages.js" type="text/javascript">
      </script>
      <script language="JavaScript" src="../utility/MessagesJS.js" type="text/javascript"></script>
      <script language="JavaScript" type="text/javascript" id="paramLanguage">
        var LNG_POR_DEFECTO = "en_US";
      </script>
      <script language="JavaScript" src="../../../../../web/js/utils.js" type="text/javascript"></script>
      <script language="JavaScript" src="../../../../../web/js/searchs.js" type="text/javascript"></script>
      <script language="JavaScript" src="../../../../../web/js/ajax.js" type="text/javascript"></script>
      <script language="JavaScript" src="../../../../../web/js/default/MessageBox.js" type="text/javascript"></script>
      <script language="JavaScript" src="../../../../../web/js/messages.js" type="text/javascript"></script>
      <script language="JavaScript" src="../utility/MessagesJS.js" type="text/javascript"></script>
      <script language="JavaScript" src="../../../../../web/js/jscalendar/calendar.js" type="text/javascript"></script>
      <script language="JavaScript" src="../../../../../web/js/jscalendar/lang/calendar-es.js" type="text/javascript" id="fieldCalendar"></script>
      <script language="JavaScript" src="../../../../../web/js/String.js" type="text/javascript"></script>
      <script language="JavaScript" src="../../../../../web/js/TypeAheadCombo.js" type="text/javascript"></script>
      <script language="JavaScript" src="../../../../../web/js/dojoConfig.js" type="text/javascript"></script>

<SCRIPT language="JavaScript" type="text/javascript">

function callback(paramArray) {
  	var strText = "";
  	var id = "";
  	var imageId = "";
  	if (getReadyStateHandler(xmlreq)) {
  		try {
  			if (xmlreq.responseText) strText = xmlreq.responseText;
  		} catch (e) {
  		}
  		if (paramArray!=null && paramArray.length>0) {
  			id = paramArray[0];
  			imageId = paramArray[1];
  		}
  		layer(id, strText, true, false);
  		showHideLayer(id, imageId);
  	}
  	return true;
  }
  
  function showHideLayer(id, imageId) {
  	var obj = getReference(imageId);
  	var spanObj = getStyle(id);
  	if (obj!=null) {
  		if (obj.className == "datawarehouseopen") {
  			obj.className = "datawarehouseclose";
  			if (spanObj!=null) spanObj.display = "none";
  		} else {
  			obj.className = "datawarehouseopen";
  			if (spanObj!=null) spanObj.display = "";
  		}
  	}
  }

	function actualizarDatos(CommandValue, nivel1, nivel2, nivel3, nivel4, id, level, columnLevel) {
   
    var frm = document.frmMain;
    var paramLevel = new Array (nivel1, nivel2, nivel3, nivel4);
    if (nivel1 == '0') frm.inpNivel1.value = "";
    else frm.inpNivel1.value = nivel1;
    if (nivel2 == '0') frm.inpNivel2.value = "";
    else frm.inpNivel2.value = nivel2;
    if (nivel3 == '0') frm.inpNivel3.value = "";
    else frm.inpNivel3.value = nivel3;
    if (nivel4 == '0') frm.inpNivel4.value = "";
    else frm.inpNivel4.value = nivel4;
    frm.inpLevel.value = level;
    frm.inpColumnLevel.value = columnLevel;
    
   
    
    var datosLayer = readLayer("returnText" + id + paramLevel[level-1], true);
    if (datosLayer==null || datosLayer=="") {
      seleccionarListCompleto(frm.inpmProductId_IN);
      seleccionarListCompleto(frm.inpcBPartnerId_IN);
      seleccionarListCompleto(frm.inpShown);
      paramXMLRequest = new Array('returnText' + id, 'buttonTree' + id);
      return submitXmlHttpRequest(callback, frm, CommandValue, "ReportAccountingCountDimensionalAnalysesFilter.html", false);
    } else {
      showHideLayer("returnText" + id + paramLevel[level-1], "buttonTree" + id + + paramLevel[level-1]);
  }
}

</script>
     
</HEAD>
    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<FORM method="POST" action="ReportAccountingCountDimensionalAnalysesFilter.html" name="frmMain" target="_self" id="form">
  <INPUT type="hidden" name="Command"></INPUT>
  
  
  <INPUT type="hidden" name="inpNivel1" value=""></INPUT>
  <INPUT type="hidden" name="inpNivel2" value=""></INPUT>
  <INPUT type="hidden" name="inpNivel3" value=""></INPUT>
  <INPUT type="hidden" name="inpNivel4" value=""></INPUT>
  <INPUT type="hidden" name="inpLevel" value=""></INPUT>
  <INPUT type="hidden" name="inpColumnLevel" value=""></INPUT>
  <INPUT type="hidden" name="inpcBPartnerId" value=""></INPUT>
  <INPUT type="hidden" name="inpLastFieldChanged" value=""></INPUT>
  
  <DIV class="ReportTitle">Accounting account report<SPAN id="paramTitle">xxdesde hasta</SPAN></DIV>

  <DIV id="selEliminarDetail1"> 
    <TABLE width="70%" align="center" class="Border" border="1" cellspacing="0" cellpadding="0">
      <TR class="Border TableDetailRowEven"> 
      <TD width="40%"> <FONT size="-1">Final<span>&nbsp;</span><SPAN id="fieldTotalFinal"></SPAN></FONT></TD>
      </TR>
    </TABLE>
    <BR></BR>
    <TABLE width="70%" align="center" id="selEliminar1">
      <TR class="TableDetailHeader"> 
        <TD width="6%">&nbsp;</TD>
        <TD width="4%">&nbsp;</TD>
        <TD width="8%">&nbsp;</TD>
        <TD width="6%">&nbsp;</TD>
        <TD width="6%">&nbsp;</TD>
        <TD width="52%" ></TD>
        <TD width="18%" align="right" class="TableDetailHeader"><SPAN class="Bold">Final balance</SPAN></TD>
      </TR>
    </TABLE>
    <DIV id="sectionNivel"> 
      <DIV id="sectionDetail"> 
        <TABLE width="70%" align="center" id="selEliminar">
          <TR class="TableHeaderLevel1"> 
            <TD width="6%"></TD>
            <TD width="76%"  id="fieldClassLevel"><div style="display: table-cell;"> <A href="#" onclick="actualizarDatos('OPEN', 'xx', 'yy', 'zz', 'ww', 'mm', 'pp', 'aa');return false;" onmouseover="window.status='Open';return true;" onmouseout="window.status='';return true;" id="fieldParentLevel"> 
              <SPAN id="buttonTreexx" class="datawarehouseclose"></SPAN></A> <SPAN id="fieldNivel"></SPAN></div></TD>
            <TD width="18%" align="right"  id="fieldClassLevel"> 
              <SPAN id="fieldTotalAmt"></SPAN></TD>
          </TR>
        </TABLE>
        <SPAN id="returnTextss"></SPAN></DIV>
    </DIV>
  </DIV>
  <DIV id="selEliminarDetail2"> 
    <TABLE width="70%" align="center" class="Border" border="1" cellspacing="0" cellpadding="0">
      <TR class="Border TableDetailRowEven">    
        <TD width="40%"> <FONT size="-1">Final&nbsp;<SPAN id="fieldPeriodFinal"></SPAN></FONT></TD>
      </TR>
    </TABLE>
    <BR></BR>
    <TABLE width="150%" align="center" id="selEliminar3">
      <TR class="TableDetailHeader"> 
        <TD width="22%" > <SPAN >Period</SPAN></TD>
        <DIV id="sectionPeriod"> 
          <TD width="6%" > <SPAN  id="fieldPeriod"></SPAN></TD>
        </DIV>
        <TD width="6%" class="TableDetailHeader" align="right">Final balance</TD>
      </TR>
    </TABLE>
    <DIV id="sectionPeriodNivel"> 
      <TABLE width="150%" align="center">
        <TR class="TableHeaderLevel1"> 
          <TD width="xx%" id="fieldPeriodWidthMargin">&nbsp;</TD>
          <TD width="yy%" id="fieldPeriodWidthText" ><div style="display: table-cell;"><A href="#" onclick="actualizarDatos('OPEN', 'xx', 'yy', 'zz', 'ww', 'mm', 'pp', 'aa');return false;" onmouseover="window.status='Open';return true;" onmouseout="window.status='';return true;" id="fieldPeriodParentLevel"> 
            <SPAN id="buttonTreexy" class="datawarehouseclose"></SPAN></A> <SPAN id="fieldPeriodNivel"></SPAN></div></TD>
          <DIV id="sectionPeriodDetail"> 
            <TD width="6%" align="right" id="fieldPeriodClassLevel" > 
              <SPAN id="fieldAcumulativeTotalFinal"></SPAN></TD>
          </DIV>
          <TD width="6%" align="right"  id="fieldPeriodTotalFinal"></TD>
        </TR>
      </TABLE>
      <SPAN id="returnTextsx"></SPAN></DIV>
  </DIV>
  <DIV id="selEliminarDetail3"> 
    <TABLE width="70%" align="center" class="Border" border="1" cellspacing="0" cellpadding="0">
       <TR class="Border TableDetailRowEven"> 
        <TD width="40%"> <FONT size="-1">Final&nbsp;<SPAN id="fieldComparativeTotalFinal"></SPAN></FONT></TD>
      </TR>
    </TABLE>
    <BR></BR>
    <TABLE width="70%" align="center" id="selEliminar1">
      <TR> 
        <TD width="6%">&nbsp;</TD>
        <TD width="4%">&nbsp;</TD>
        <TD width="8%">&nbsp;</TD>
        <TD width="6%">&nbsp;</TD>
        <TD width="6%">&nbsp;</TD>
        <TD width="52%" ></TD>
        <TD width="18%" align="right" class="TableDetailHeader">Final balance</TD>
      </TR>
    </TABLE>
    <DIV id="sectionComparativeNivel"> 
      <TABLE width="70%" align="center" id="selEliminar">
        <DIV id="sectionComparativeDetail"> 
          <TR class="TableHeaderLevel1"> 
            <TD width="xx%" id="fieldComparativeWidthMargin"></TD>
            <TD width="yy%" id="fieldComparativeWidthText" ><div style="display: table-cell;">
              <A href="#" onclick="actualizarDatos('OPEN', 'xx', 'yy', 'zz', 'ww', 'mm', 'pp', 'aa');return false;" onmouseover="window.status='Open';return true;" onmouseout="window.status='';return true;" id="fieldComparativeParentLevel"> 
              <SPAN id="buttonTreexz" class="datawarehouseclose"></SPAN></A> <SPAN id="fieldComparativeNivel"></SPAN></div></TD>
            <TD width="18%" align="right"  id="fieldComparativeClassLevel"> 
              <SPAN id="fieldComparativeTotalAmt"></SPAN></TD>
          </TR>
          <TR class="TableHeaderLevel1"> 
            <TD width="xx%" id="fieldComparativeWidthMargin"></TD>
            <TD width="yy%" id="fieldComparativeWidth" > <SPAN id="fieldComparativeNivel"></SPAN></TD>
            <TD width="18%" align="right" > <SPAN id="fieldComparativeTotalAmtRef"></SPAN></TD>
          </TR>
          <TR class="TableHeaderLevel1"> 
            <TD width="xx%" id="fieldComparativeWidthMargin"></TD>
            <TD width="yy%"  id="fieldComparativeWidth">&nbsp;</TD>
            <TD width="18%" align="right" > <SPAN id="fieldComparativePercent">&nbsp;</SPAN></TD>
          </TR>
        </DIV>
      </TABLE>
      <SPAN id="returnTextsz"></SPAN></DIV>
  </DIV>
  <DIV id="selEliminarDetail4"> 
    <TABLE width="70%" align="center" class="Border" border="1" cellspacing="0" cellpadding="0">
      <TR class="Border TableDetailHeader"> 
        <TD width="40%"> <FONT size="-1">Final&nbsp;<SPAN id="fieldComparativePeriodFinal"></SPAN></FONT></TD>
      </TR>
    </TABLE>
    <BR></BR>
    <TABLE width="150%" align="center" id="selEliminar3">
      <TR class="Border TableDetailRowEven"> 
        <TD width="22%" > <SPAN >Period</SPAN></TD>
        <DIV id="sectionPeriod"> 
          <TD width="6%" > <SPAN  id="fieldPeriod"></SPAN></TD>
        </DIV>
        <TD width="6%" align="right" class="TableDetailHeader">Final balance</TD>
      </TR>
    </TABLE>
    <DIV id="sectionComparativePeriodNivel"> 
      <TABLE width="150%" align="center" id="selEliminar3">
        <TR class="TableHeaderLevel1"> 
          <TD width="22%"> <TABLE width="100%">
              <TR class="TableHeaderLevel1"> 
                <TD width="xx%" id="fieldComparativePeriodWidthMargin">&nbsp;</TD>
                <TD width="yy%" id="fieldComparativePeriodWidthText" ><div style="display: table-cell;">
                  <A href="#" onclick="actualizarDatos('OPEN', 'xx', 'yy', 'zz', 'ww', 'mm', 'pp', 'aa');return false;" onmouseover="window.status='Open';return true;" onmouseout="window.status='';return true;" id="fieldComparativePeriodParentLevel"> 
                  <SPAN id="buttonTreexj" class="datawarehouseclose"></SPAN></A> 
                  <SPAN id="fieldComparativePeriodNivel"></SPAN></div></TD>
              </TR>
              <TR class="TableHeaderLevel1"> 
                <TD width="xx%" id="fieldComparativePeriodWidthMargin">&nbsp;</TD>
                <TD width="yy%" id="fieldComparativePeriodWidthTextRef" > 
                  <SPAN id="fieldComparativePeriodNivel"></SPAN></TD>
              </TR>
              <TR class="TableHeaderLevel1">  
                <TD width="xx%" id="fieldComparativePeriodWidthMargin">&nbsp;</TD>
                <TD width="yy%" id="fieldComparativePeriodWidth" >&nbsp;</TD>
              </TR>
            </TABLE></TD>
          <DIV id="sectionComparativePeriodDetail"> 
            <TD width="6%"> <TABLE width="100%">
                <TR class="TableHeaderLevel1"> 
                  <TD width="100%" align="right" id="fieldComparativePeriodClassLevel" > 
                    <SPAN id="fieldComparativePeriodAcumulativeTotalAmt"></SPAN></TD>
                </TR>
                <TR class="TableHeaderLevel1"> 
                  <TD width="100%" align="right" id="fieldComparativePeriodClassLevelRef" > 
                    <SPAN id="fieldComparativePeriodAcumulativeTotalAmtRef"></SPAN></TD>
                </TR>
                <TR class="TableHeaderLevel1"> 
                  <TD width="100%" align="right"  id="fieldCPAcumulativePercent"></TD>
                </TR>
              </TABLE></TD>
          </DIV>
          <TD width="6%"> <TABLE width="100%">
              <TR class="TableHeaderLevel1"> 
                <TD width="100%" align="right"  id="fieldComparativePeriodTotalFinalClass"> 
                  <SPAN id="fieldComparativePeriodTotalFinal"></SPAN></TD>
              </TR>
              <TR class="TableHeaderLevel1"> 
                <TD width="100%" align="right"  id="fieldComparativePeriodTotalFinalRefClass"> 
                  <SPAN id="fieldComparativePeriodTotalFinalRef"></SPAN></TD>
              </TR>
              <TR class="TableHeaderLevel1"> 
                <TD width="100%" align="right"  id="fieldComparativePeriodTotalFinalPercent"></TD>
              </TR>
            </TABLE></TD>
        </TR>
      </TABLE>
      <SPAN id="returnTextsj"></SPAN></DIV>
  </DIV>
                 
</FORM>
</body>
</html>

